﻿@{
    ViewBag.Title = "个人中心";

    var user = UsersInfo.GetUser();

    XQ.SP.BllServices.SysDegreeBLL bllD = new XQ.SP.BllServices.SysDegreeBLL();
    var msD = bllD.GetModelList().OrderByDescending(p=>p.Select2).ToList();
    
}
                        @{
                            XQ.SP.BllServices.UsersBLL bllu = new XQ.SP.BllServices.UsersBLL();
                            var u1 = bllu.GetModelList(" ParentId=" + user.Id);
                            var uAll = bllu.GetModelList(@"id in (select id from Users where ParentId=" + user.Id + @")
or id in (select id from Users where ParentId in (select id from Users where ParentId=" + user.Id + @"))
or id in (select id from Users where ParentId in (select id from Users where ParentId in 
(select id from Users where ParentId=" + user.Id + @")))");
                            XQ.SP.BllServices.StoreOrdersProduceBLL bllOrder = new XQ.SP.BllServices.StoreOrdersProduceBLL();
                            var mOrder = bllOrder.GetModelList(@" UsersID in (" + user.Id + ")");


                            XQ.SP.BllServices.SysDataABLL bllBase = new XQ.SP.BllServices.SysDataABLL();
                            var mJing = bllBase.GetModelWhereStr(" Types='奖金池' and Name='奖金池'");



                            XQ.SP.BllServices.UserMoneyBLL bllum = new XQ.SP.BllServices.UserMoneyBLL();
                            var mUm = bllum.GetModelList("  UsersID=" + user.Id + " and  State='已打款' ");
                            decimal dd = mUm.Sum(p => p.MoneyV);
                        }


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<title>个人中心</title>
<link type="text/css" rel="stylesheet" href="/Res/HopeCss/css/style.css" />
</head>

<body>
<div class="m0myheader">
  <div class="conbox">
    <div class="conboxL">
      <img src="@user.PhotoPath" class="tt"/>
      <div class="btR">
        <p class="p1">@user.UserName</p>
        <div class="v1">
          <img src="/Res/HopeCss/images/mmm.png" />
            @{
                foreach(var d in msD)
                {
                    if(u1.Count() >= d.Select1 && uAll.Count() >= d.Select2)
                    {
          <p>@d.Name ></p>
                    }
                }
            }
        </div>
      </div>
    </div>
@*    <div class="conboxR">
       <a href="/StoreOrdersAddress/List">默认地址</a>
    </div>*@
    <div class="clear"></div>
  </div>
  <div class="conbox2">
@*    <ul>
      <li>
        <a href="javascript:void()">
          <p class="p1">13</p>
          <p class="p2">收藏夹</p>
        </a>
      </li>
      <li>
        <a href="javascript:void()">
          <p class="p1">1</p>
          <p class="p2">我的下级</p>
        </a>
      </li>
      <li>
        <a href="javascript:void()">
          <p class="p1">3</p>
          <p class="p2">浏览记录</p>
        </a>
      </li>
    </ul>*@
  </div>
</div>
    
<div class="clear"></div>
<div class="mypart1">
  <ul>
@*    <li style="width:25%;">
      <a href="/h/InteJi">
      <p class="p1">@mJing.ValueNum </p>
      <p class="p2">奖金池</p>
      </a>
    </li>*@
@*    <li>
      <a href="quanNews1.html">
      <p class="p1">1</p>
      <p class="p2">团队人数</p>
      </a>
    </li>*@
    <li style="width:25%;">
      <a href="/h/InteJi">
      <p class="p1">@(dd+user.UMoney)</p>
      <p class="p2">总收入</p>
      </a>
    </li>
    <li style="width:25%;">
      <a href="/h/MyListSellAll">
      <p class="p1">@user.UMoney</p>
      <p class="p2">可提现</p>
      </a>
    </li>
@*    <li style="width:25%;">
      <a href="/h/MyListSellAll">
      <p class="p1">@mOrder.Sum(p=>p.Number)</p>
      <p class="p2">商品数量</p>
      </a>
    </li>*@
    <li style="width:25%;">
      <a href="/h/MyListSellAll">
      <p class="p1">@mOrder.Sum(p=>p.PriceNei*p.Number)</p>
      <p class="p2">支付订单</p>
      </a>
    </li>
    <li style="width:25%;">
      <a href="/h/MyListSellAll">
      <img src="/Res/HopeCss/images/my01.png" />
      <p class="p2">消费记录</p>
      </a>
    </li>
  </ul>
</div>
<div class="kbox"></div><div class="kbox"></div>
<div class="clear"></div>
<div class="mypart2">
  <div class="con">
    <div class="pa2_tit">
      <p>我的订单</p>
      <a href="/h/MyListSellAll">查看更多订单 ></a>
    </div>
    <ul>
      <li style="width:25%;">
        <a href="/h/CartW">
          <div class="ddimg">
            <img src="/Res/HopeCss/images/my02.png" />
          </div>
          <p>待付款</p>
        </a>
      </li>
      <li style="width:25%;">
        <a href="/h/MyListSell">
          <div class="ddimg">
            <img src="/Res/HopeCss/images/my03.png" />
          </div>
          <p>待发货</p>
        </a>
      </li>
      <li style="width:25%;">
        <a href="/h/MyListSell2">
          <div class="ddimg">
            <img src="/Res/HopeCss/images/my04.png" />
          </div>
          <p>待收货</p>
        </a>
      </li>
      <li style="width:25%;">
        <a href="/h/MyListSell3">
          <div class="ddimg">
            <img src="/Res/HopeCss/images/my05.png" />
@*            <div class="num">2</div>*@
          </div>
          <p>待评价</p>
        </a>
      </li>
@*      <li>
        <a href="allDd.html">
          <div class="ddimg">
            <img src="/Res/HopeCss/images/my06.png" />
          </div>
          <p>退款/售后</p>
        </a>
      </li>*@
    </ul>
  </div>
</div>
<div class="kbox"></div><div class="kbox"></div>
<div class="clear"></div>
<div class="mypart2">
  <div class="con">
    <div class="pa2_tit">
      <p>我的分销</p>
      <a href="#">查看更多 ></a>
    </div>
    
  </div>
</div>
<div class="clear"></div>
<div class="kbox"></div><div class="kbox"></div>
<div class="clear"></div>
<div class="mypart3" style="margin-bottom:40px;">
  <ul>
@*    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my11.png" />
      <p>我的活动</p>
      </a>
    </li>
    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my12.png" />
      <p>社区</p>
      </a>
    </li>*@
    <li>
      <a href="/h/tui">
      <img src="/Res/HopeCss/images/my13.png" />
      <p>我的客户</p>
      </a>
    </li>
    @*<li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my13.png" />
      <p>分销商</p>
      </a>
    </li>
    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my10.png" />
      <p>我的客服</p>
      </a>
    </li>*@
@*    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my14.png" />
      <p>京东超市</p>
      </a>
    </li>
    <li>
      <a href="quanNews1.html">
      <img src="/Res/HopeCss/images/my7.png" />
      <p>我的优惠券</p>
      </a>
    </li>*@
    <li>
      <a href="/user/MyNo">
      <img src="/Res/HopeCss/images/my9.png" />
      <p>推广二维码</p>
      </a>
    </li>
    <li>
      <a href="/StoreOrdersAddress/List">
      <img src="/Res/HopeCss/images/my8.png" />
      <p>收货地址</p>
      </a>
    </li>
    <li>
      <a href="/UserMoney/MEdit">
      <img src="/Res/HopeCss/images/my7.png" />
      <p>去提现</p>
      </a>
    </li>
    <li>
      <a href="/UserMoney/MList">
      <img src="/Res/HopeCss/images/my11.png" />
      <p>提现明细</p>
      </a>
    </li>
      <li>
      <a href="/UserMoneyRec/List">
      <img src="/Res/HopeCss/images/my10.png" />
      <p>收入明细</p>
      </a>
    </li>
@*    <li>
      <a href="/h/InteJi">
      <img src="/Res/HopeCss/images/my10.png" />
      <p>奖金池排名</p>
      </a>
    </li>*@

@*    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my12.png" />
      <p>社区</p>
      </a>
    </li>
    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my13.png" />
      <p>客户服务</p>
      </a>
    </li>
    <li>
      <a href="javascript:void()">
      <img src="/Res/HopeCss/images/my14.png" />
      <p>京东超市</p>
      </a>
    </li>
    <li>
      <a href="addressGL.html">
      <img src="/Res/HopeCss/images/my8.png" />
      <p>收获地址</p>
      </a>
    </li>
    <li>
      <a href="jifen.html">
      <img src="/Res/HopeCss/images/my9.png" />
      <p>我的积分</p>
      </a>
    </li>*@
  </ul>
</div>
@*<div class="mypart4">
  <img src="/Res/HopeCss/images/my15.png" />
</div>
<div class="likebox my">
  <ul>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/21.png" class="proimg"/>
      <p class="tit">三利 毛巾家纺纯棉吸水 提缎面巾两条装</p>
      <p class="price">￥29.9<span>￥49.9</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/22.png" class="proimg"/>
      <p class="tit">韩国代购正品超爆款 </p>
      <p class="price">￥198.0<span>￥286.0</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/23.png" class="proimg"/>
      <p class="tit">三利 毛巾家纺纯棉吸水 提缎面巾两条装</p>
      <p class="price">￥29.9<span>￥49.9</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/24.png" class="proimg"/>
      <p class="tit">韩国代购正品超爆款 休闲迷彩磨砂真皮运动鞋女单鞋</p>
      <p class="price">￥198.0<span>￥286.0</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/25.png" class="proimg"/>
      <p class="tit">三利 毛巾家纺纯棉吸水 提缎面巾两条装</p>
      <p class="price">￥29.9<span>￥49.9</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/26.png" class="proimg"/>
      <p class="tit">韩国代购正品超爆款 休闲迷彩磨砂真皮运动鞋女单鞋</p>
      <p class="price">￥198.0<span>￥286.0</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/27.png" class="proimg"/>
      <p class="tit">三利 毛巾家纺纯棉吸水 提缎面巾两条装</p>
      <p class="price">￥29.9<span>￥49.9</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
    <li>
      <a href="xq.html">
      <img src="/Res/HopeCss/images/28.png" class="proimg"/>
      <p class="tit">韩国代购正品超爆款 休闲迷彩磨砂真皮运动鞋女单鞋</p>
      <p class="price">￥198.0<span>￥286.0</span><img src="/Res/HopeCss/images/f3.png" /></p>
      </a>
    </li>
  </ul>
</div>
<div class="clear"></div>
<div class="fbox"></div>*@
<div class="footbox">
  <div class="footer">
@*    <ul>
      <li>
        <a href="index.html">
          <img src="/Res/HopeCss/images/f01.png" />
          <p>首页</p>
        </a>
      </li>
      <li>
        <a href="message.html">
          <img src="/Res/HopeCss/images/f02.png" />
          <p>发现</p>
        </a>
      </li>
      <li>
        <a href="gwc.html">
          <img src="/Res/HopeCss/images/f03.png" />
          <p>购物车</p>
        </a>
      </li>
      <li class="on">
        <a href="my.html">
          <img src="/Res/HopeCss/images/f4.png" />
          <p>我的</p>
        </a>
      </li>
    </ul>*@
    <ul>
      <li style="width:20%;">
        <a href="/h/index">
          <img src="/Res/HopeCss/images/f01.png" />
          <p>首页</p>
        </a>
      </li>
      <li style="width:20%;">
        <a href="/h/indext">
          <img src="/Res/HopeCss/images/f02.png" />
          <p>发现</p>
        </a>
      </li>
      <li style="width:20%;">
        <a href="/h/CartW">
          <img src="/Res/HopeCss/images/f03.png" />
          <p>购物车</p>
        </a>
      </li>
      <li style="width:20%;">
        <a href="/h/InteJi">
          <img src="/Res/HopeCss/images/my10.png" />
          <p>奖金池排名</p>
        </a>
      </li>
      <li class="on" style="width:20%;">
        <a href="/user/my">
          <img src="/Res/HopeCss/images/f4.png" />
          <p>我的</p>
        </a>
      </li>
    </ul>
  </div>
</div>
</body>
</html>
